# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header

inherit python eutils subversion 

RESTRICT="nomirror"
DESCRIPTION="A canvas widget for displaying GTK+ UI across multiple platforms"
HOMEPAGE="http://mugshot.org/"
ESVN_REPO_URI="http://svn.mugshot.org/dumbhippo/trunk/client"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86 ~amd64"
IUSE=""
RDEPEND="dev-python/pycairo
	=dev-python/pygtk-2*
	>=x11-libs/gtk+-2.6
	>=dev-libs/glib-2.6
	net-libs/xulrunner"

DEPEND="${RDEPEND}
	dev-util/pkgconfig"

src_compile() {
	local myconf
	myconf="--with-gecko-sdk=/usr/$(get_libdir)/xulrunner"
	myconf="${myconf} --with-xpidl=/usr/$(get_libdir)/xulrunner/xpidl --prefix=/usr"
	./autogen.sh ${myconf} || die "autogen.sh failed."
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed."
	insinto /usr/include/ddm-1/ddm
	doins common/ddm/ddm*.h
}
